/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pig4cloud.ila.basic.api.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 会员表
 *
 * @author KonBAI
 * @date 2020-10-04 21:13:57
 */
@Data
@TableName("basic_member")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "会员表")
public class BasicMember extends Model<BasicMember> {
private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId
    @ApiModelProperty(value="主键ID")
    private Integer memberId;
    /**
     * 用户名
     */
    @ApiModelProperty(value="用户名")
    private String username;
    /**
     * 密码
     */
    @ApiModelProperty(value="密码")
    private String password;
    /**
     * 随机盐
     */
    @ApiModelProperty(value="随机盐")
    private String salt;
    /**
     * 真实名字
     */
    @ApiModelProperty(value="真实名字")
    private String realName;
    /**
     * 手机
     */
    @ApiModelProperty(value="手机")
    private String phone;
    /**
     * 头像
     */
    @ApiModelProperty(value="头像")
    private String avatar;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value="创建时间")
    private LocalDateTime createTime;
    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty(value="修改时间")
    private LocalDateTime updateTime;
    /**
     * 0-正常，9-锁定
     */
    @ApiModelProperty(value="0-正常，9-锁定")
    private String lockFlag;
    /**
     * 0-正常，1-删除
     */
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value="0-正常，1-删除")
    private String delFlag;
}
